import React, { Component } from 'react';



import Myclschild from './Myclschild';
//引入函数组件
import Myfunchild from './Myfunchild';
class Mycls extends Component {
    state = {
        username: 99
    }
    render() {
        return (
            <div>
                {/* 使用子组件 */}
                {/* <Myclschild age={this.state.username}></Myclschild> */}
                <Myfunchild username={this.state.username}></Myfunchild>
            </div>
        );
    }
}

export default Mycls;
